package com.testerhome.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * @author sunliancheng
 * @date 2023/10/22
 */
public class IndexPage {
    private WebDriver webDriver;
    //构造方法，传入webdriver
    public IndexPage(WebDriver webDriver){
        this.webDriver = webDriver;
    }
    public void gotoTopics(){
        webDriver.findElement(By.linkText("社区")).click();
    }
}
